<html>
<head>
    <title>BOOKING</title>
</head>
<body bgcolor= "#FFFACD">
<IMG SRC = "http://image.ohozaa.com/i/d29/bMY7Wm.jpg" width = "100%" height = "200" border="3"><p>
    <form action="/booking_times/" method="POST">
    <HR><center><h2> ~  T I M E  &nbsp;&nbsp;&nbsp; S E L E C T E D  ~ </h2><HR></center>
    <center>
    <a href="http://localhost:8000/user_profile/" >profile</a>
	&nbsp;&nbsp;/&nbsp;&nbsp;
	booking
	&nbsp;&nbsp;/&nbsp;&nbsp;
	<a href="http://localhost:8000/booking_history/">booking history</a>
	&nbsp;&nbsp;/&nbsp;&nbsp;
	<a href="http://localhost:8000/report_error/">report error by user</a>
	&nbsp;&nbsp;/&nbsp;&nbsp;
	<a href="http://localhost:8000/log_out/" >log out</a>
	<br><br>
	<table width="500" border="1">
	<td><center>TIME</center></td>
	<td><center>STATUS</center></td></tr>
	{% for time in show_time %}
			<td><center>9.00-10.00</center></td>
			<td><center>{{ time.Time9_10}}</center></td></tr>
			<td><center>10.00-11.00</center></td>
			<td><center>{{ time.Time10_11}}</center></td></tr>
			<td><center>11.00-12.00</center></td>
			<td><center>{{ time.Time11_12}}</center></td></tr>
			<td><center>12.00-13.00</center></td>
			<td><center>{{ time.Time12_13}}</center></td></tr>
			<td><center>13.00-14.00</center></td>
			<td><center>{{ time.Time13_14}}</center></td></tr>
			<td><center>14.00-15.00</center></td>
			<td><center>{{ time.Time14_15}}</center></td></tr>
			<td><center>15.00-16.00</center></td>
			<td><center>{{ time.Time15_16}}</center></td></tr>
			<td><center>16.00-17.00</center></td>
			<td><center>{{ time.Time16_17}}</center></td></tr>
			<td><center>17.00-18.00</center></td>
			<td><center>{{ time.Time17_18}}</center></td></tr>
			<td><center>18.00-19.00</center></td>
			<td><center>{{ time.Time18_19}}</center></td></tr></tr>
	{% endfor %}
	</TABLE>
	{% csrf_token %}
	<table width="500" border="1">
	  <td><center>Select Time : <select name="time"> {% for t in time_all %}
	 <option value="{{t}}">{{t}}</option>
	 {% endfor %}
	 </TABLE>
	 <br><br>
	 <input type="submit" value="submit">
	 <br>
	 </form>
	{% if errors %}
        <ul>
            {% for error in errors %}
            <li>{{ error }}</li>
            {% endfor %}
        </ul>
    {% endif %}
	</center>
</body>
</html>